package com.littleHan.brushQuestions.web.uploadTopic.service;

import com.littleHan.brushQuestions.exception.FailedToInsertException;
import com.littleHan.brushQuestions.exception.FailedToLoadException;
import com.littleHan.brushQuestions.web.start.pojo.Topic;

import java.util.Map;

public interface UploadTopicService {

    /**
     * 上传题目-加载题型、科目、难度等列表
     * @return map集合
     */
    Map<String, Object> getTopicAbout() throws FailedToLoadException;

    /**
     * 添加题目
     * @param topic 题目实例
     * @param userId 用户id
     */
    void goUploadTopic(Topic topic,String userId) throws FailedToInsertException;
}
